home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 1
/
PC World Interactive 1 - Nisan 1997.iso
/
prog
/
ofis
/
3
/
wordweb.lss
< prev
next >
Wrap
Text File
|
1996-05-02
|
742b
|
31 lines
Option Public
Declare Function ShowModalWordWeb Lib "WWeb32.DLL" Alias "ShowModalWordWeb" (Byval Ins As String, Byval Outs As String, Byval CloseOnCopy As Long, Byval AWindow As Long) As Long
Sub Main
Dim OutS1 As String * 255
On Error Goto ShowUnSet
OutS1 = String$(255,0)
.SelectWord
Str1$=.Text.GetText(366,1)
If Len(Str1$)<2 Then
.Type("[Left][Left]")
.SelectWord
Str1$=.Text.GetText(366,1)
If Len(Str1$)<2 Then Str1$=""
End If
On Error Goto Err2
If ShowModalWordWeb(Str1$, OutS1, 1, 0) Then
If Len(Str1$)>1 Then .Type("[CtrlLeft]")
.Text.DeleteChars(Len(Str1$))
.Type(OutS1)
End If
Goto IsEnd
ShowUnSet:
Call ShowModalWordWeb("", out, 0, 0)
Err2:
Resume IsEnd
IsEnd:
End Sub